<div class="cl pd-5 bg-1 bk-gray"> 
	<span class="l"> 
		<a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> 
		<a class="btn btn-primary radius" href="javascript:;" onclick="admin_role_add('发布资讯','send.html','1200')"><i class="Hui-iconfont">&#xe600;</i> 发布资讯</a>
	</span>
	<span class="r">共有数据：<strong>{$count}</strong> 条</span>
</div>
<table class="table table-border table-bordered table-hover table-bg">
	<thead>
		<tr>
			<th scope="col" colspan="10"><?php if($typeid == 5){echo '物业公告';}else{echo '社区资讯';} ?></th>
		</tr>
		<tr class="text-c">
			<th width="25"><input type="checkbox" value="" name=""></th>
			<th width="25">ID</th>
			<th>标题</th>
			<th>发布者</th>
			<th>资讯类型</th>
			<th>是否删除</th>
			<th>所属项目</th>
			<th>发布时间</th>
			<th width="70">操作</th>
		</tr>
	</thead>
	<tbody>
		<?php if(is_array($list) && count($list)){ foreach($list as $ls){ ?>
		<tr class="text-c">
			<td><input type="checkbox" value="" name=""></td>
			<td>{$ls['topic_id']}</td>
			<td>{$ls['topic_title']}</td>
			<td>{$ls['topic_send_nick']}</td>
			<td>{$ls['type_title']}</td>
			<td id="tr_{$ls['topic_id']}">{$ls['topic_isdelete'] ? '是' : '否'}</td>
			<td>{$ls['project_name']}</td>
			<td>{$ls['topic_times']|date="Y-m-d H:i", ###}</td>
			<td class="f-14">
				<a title="编辑" href="javascript:;" onclick="admin_role_edit('资讯编辑','index.html?tid={$ls['topic_id']}','1')" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> 
				<a title="删除" href="javascript:;" onclick="admin_role_del(this,'{$ls['topic_id']}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
			</td>
		</tr>
		<?php } }else{ ?>
		<tr class="text-c">
			<td colspan="19" >暂无数据...</td>
		</tr>
		<?php } ?>
	</tbody>
</table>

<!--page-->
<include file="Common/page" />